package org.dromara.system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.system.domain.WbCandidateList;
import org.dromara.system.domain.bo.WbCandidateListBo;
import org.dromara.system.domain.vo.*;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 中标候选人详情Mapper接口
 *
 * @author Lion Li
 * @date 2024-05-27
 */
public interface WbCandidateListMapper extends BaseMapperPlus<WbCandidateList, WbCandidateListVo> {

    Page<WbCandidateListVo> selectByList(String year,String provinceId , @Param("id") Long enterpriseId,@Param("page") Page<Object> build);

    int mergeByBo(@Param("bo") WbCandidateListBo bo);

    /**
     * 统计
     * @param bo
     * @param build
     * @return
     */
    Page<WbCandidateListVo> queryCandidatePageList(@Param("bo") WbCandidateListBo bo,@Param("page") Page<Object> build);

    Page<SkyAbnornalVo> queryAbnormalPage(@Param("bo") WbCandidateListBo bo, @Param("page") Page<Object> build);
    Page<SkyAbnornalVo> queryIllegalPage(@Param("bo") WbCandidateListBo bo,@Param("page") Page<Object> build);
    Page<SkyHumanDishonestVo> queryDishonestPage(@Param("bo") WbCandidateListBo bo, @Param("page") Page<Object> build);
    Page<SkyPunishmentVo> queryPunishmentPage(@Param("bo") WbCandidateListBo bo, @Param("page") Page<Object> build);
    Page<WbCompanyBlacklistVo> queryBlackListPage(@Param("bo") WbCandidateListBo bo, @Param("page") Page<Object> build);

    List<String> queryAllCandidate(@Param("bo") WbCandidateListBo bo);

    List<WbCandidateListRiskVo> queryRiskList(@Param("bo") WbCandidateListBo bo);

    List<WbCandidateListVo> queryBagData(@Param("bo") WbCandidateListBo eq);


}
